<%-- 
    Document   : gestionAgregarLogin
    Created on : 25/08/2013, 03:17:04 PM
    Author     : Ricardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Agregar Login</title>         
    </head>
    <body>
        <h1>Agregar Login</h1>
        <form name="altaLogin" id="altaLogin">
            <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                    <tr>
                        <th valign="top">
                               Tipo de Usuario: 
                        </th> 
                        <td>
                        <select name="tipo" size=1> 
                            <s:iterator value="tipos" var="tipo" status="estatus">    
                                <option VALUE="<s:property value="#tipo.idTipo" />"><s:property value="#tipo.tipo" /></option>
                            </s:iterator>
                        </select>                                  
                        </td>    
                        <td>                       
                        </td>
                    </tr>     
                    <tr>
                        <th valign="top">
                               Usuario: 
                        </th> 
                        <td>
                            <input type="text" class="inp-form" name="user" id="user"/>
                        </td>    
                        <td>
                        <div class="error-left"></div>
			<div class="error-inner" id="euser">Longitud mayor a 3.</div>
                        </td>
                    </tr>  
                    <tr>
                        <th valign="top">
                               Password: 
                        </th> 
                        <td>
                            <input type="password" class="inp-form" name="pass" id="pass"/>
                        </td>    
                        <td>
                        <div class="error-left"></div>
			<div class="error-inner" id="epass">Longitud mayor a 3.</div>
                        </td>
                    </tr> 
                    <tr>
                        <th valign="top">
                               Repetir Password: 
                        </th> 
                        <td>
                            <input type="password" class="inp-form" name="pass1" id="pass1"/>
                        </td>    
                        <td>
                        <div class="error-left"></div>
			<div class="error-inner" id="epass1">Los password no coinciden</div>
                        </td>
                    </tr>                      
                <tr>
                    <th>
                        Empleado: 
                    </th> 
                    <td>                           
                        <select name="idEmpleado" size=1> 
                            <s:iterator value="empleados" var="empleado" status="estatus">    
                                <option VALUE="<s:property value="#empleado.idEmpleado" />"><s:property value="#empleado.nombre" /></option>
                            </s:iterator>
                        </select>                    
                    </td>    
                </tr>                    
                    <tr>
                        <td colspan="2">
                            <input type="reset" class="btn" value="Cancelar" name="btnRegresar" id="btnRegresar">
                            <input type="submit" class="btn" value="Aceptar" name="btnAltaLogin" id="btnAltaLogin">
                        </td>    
                    </tr>    
            </table>
        </form>        
    </body>
</html>
